/*
 * GuudListener.h
 *
 *  Created on: 2013-1-23
 *      Author: heqiu
 */

#ifndef GUUDLISTENER_H_
#define GUUDLISTENER_H_

#include "SDL/SDL.h"
namespace guud {

typedef SDL_Event GuudEvent;


class GuudListener {
public:
	uint32_t m_uiMSec;
	bool m_bQuit;
	int32_t m_iMouseX;
	int32_t m_iMouseY;

	GuudListener();
	virtual ~GuudListener();
	void setDelay(uint32_t uiMSec);
	//阻塞监听
	void beginListen();
	virtual void handleEvents(GuudEvent &stEvent);
	virtual void gameQuit();
};

}

#endif /* GUUDLISTENER_H_ */
